package edu.maping.easy.io;

import java.awt.event.KeyEvent;

import processing.core.PApplet;

public class KeyBoardInteraction {

	boolean[] keys = new boolean[526];

	public boolean checkKey(int k) {
		if (keys.length >= k) {
			return keys[k];
		}
		return false;
	}

	public void keyReleased(KeyEvent keyEvent) {
		keys[keyEvent.getKeyCode()] = false;
	}

	public void keyPressed(KeyEvent keyEvent) {
		keys[keyEvent.getKeyCode()] = true;
	}

}
